How to Install an Earlier SNiFF+ 2.x PVCS Adapter in SNiFF+ 3.x

Please use this PVCS Adapter written in Python if you didn't customize an earlier PVCS adapter in SNiFF+ 2.3.x or 2.4.

In case you heavily customized a previous PVCS adapter written in TCL, we recommend that you use your existing adapter. In this case you should follow these steps to install it in SNiFF+ 3.x under Windows:

- SNiFF+ 2.x and SNiFF+ 3.x must be installed on the same system.

- SNiFF+ specific environment variables and PATH should be set for SNiFF+ 3.x.

- Run SNiFF+ 2.x and SNiFF+ 3.x simultaneously. To run SNiFF+ 2.x:

- Open a DOS shell
- Change to the SNiFF+ 2.x directory.
- Run the

%SNIFF_DIR%\SetEnvVars.bat command to set the environment variables.
- Set the PATH environment variable from the DOS prompt to reflect the SNiFF+ 2.x bin and mks path, e.g.:
SET PATH=C:\sniff24\bin;C:\sniff24\mks\mks- 5.2\mksnt;%PATH%
- Start SNiFF+ from the DOS prompt.
- Open Preferences... from any SNiFF+ tool, choose the Site Level tab, choose the Version Control System node and select PVCS in SNiFF+ 2.x and also in SNiFF+ 3.x.
- Do a manual copy and paste operation of all edit fields. Example:

- Change the Lockers field from

python -c #A
to
%d\\bin\\tclsh %d\\vcs\\pvcs.tcl pvcs_lockers \"%A\"

| Note
| No line breaks are allowed, also no line feed after the first line! Copy everything to one line. If there is more than one line, e.g. a shell script, you have to create a shell script file and call the script as a one line command.

- In SNiFF+ 3.x, create a directory
%SNIFF_DIR%\vcs .
- Copy file
%SNIFF_DIR%\vcs\pvcs.tcl from SNiFF+ 2.x to the %SNIFF_DIR%\vcs directory of SNiFF+ 3.x.
- In case you get the error message can't read "gPathVar" in the log window when using the PVCS adapter, you should change the case of environment variable
Path= from mixed case to all upper case, e.g. PATH= .

A similar procedure also works for a PVCS Adapter under Unix.